using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmAprAppraisal")]
    public class Appraisal
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "AprId", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public int AprId { get; set; }

		[DataMember, Display(Name = "AprYear", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public Nullable<int> AprYear { get; set; }

		[DataMember, Display(Name = "AprPeriod", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public Nullable<int> AprPeriod { get; set; }

		[DataMember, Display(Name = "AprName", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public string AprName { get; set; }

        [ForeignKey("MasEmployeeType")]
		[DataMember, Display(Name = "EmpTypeId", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public Nullable<int> EmpTypeId { get; set; }

		[DataMember, Display(Name = "ActStartDate", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public Nullable<System.DateTime> ActStartDate { get; set; }

		[DataMember, Display(Name = "ActEndDate", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public Nullable<System.DateTime> ActEndDate { get; set; }

		[DataMember, Display(Name = "AprStartDate", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public Nullable<System.DateTime> AprStartDate { get; set; }

		[DataMember, Display(Name = "AprEndDate", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public Nullable<System.DateTime> AprEndDate { get; set; }

        [ForeignKey("AprStdScores")]
		[DataMember, Display(Name = "StdScoreId", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public Nullable<int> StdScoreId { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.AprAppraisalsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual MasEmployeeType MasEmployeeType { get; set; }

        public virtual AppraisalStdScore AprStdScores { get; set; }

    }
}